package com.hyh.shiyanshiguanli.mapper;

import com.github.pagehelper.Page;
import com.hyh.shiyanshiguanli.domain.dto.PageDTO;
import com.hyh.shiyanshiguanli.domain.entity.OutStorage;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author hyh
 * @version 1.0
 */
@Mapper
public interface OutStorageMapper {

    Page<OutStorage> page(PageDTO pageDTO);

    @Insert("insert into out_storage (type, name, num, use_for, model_name ,update_time)" +
            "values (#{type},#{name},#{num},#{useFor},#{modelName},#{updateTime})")
    void add(OutStorage outStorage);
}
